#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QListWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QDebug>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void create();
    void handler_listwidget(QListWidgetItem* current, QListWidgetItem* old);
    void handler_insert();
    void handler_erase();

private:
    Ui::Widget *ui;
    QLineEdit *line_edit;
    QListWidget *list_widget;
    QPushButton *button_insert;
    QPushButton *button_erase;
};
#endif // WIDGET_H
